/**
 * Created by jean.h.ma on 25/04/2018.
 */
import axios from 'axios'

const http = axios.create({
	baseURL: "http://127.0.0.1:3000",
	headers: {
		"x-token": "abc"
	}
});

http.interceptors.request.use((config) => {
	return config;
}, err => {
	return Promise.reject(err);
});

http.interceptors.response.use((response) => {
	return response;
}, err => {
	return Promise.reject(err);
});

export default http;